import os
import unittest

from CONFIG.config import DATA_PATH
from PAGE.login import LoginPage
from TOOLS.utils import chrome, read_data_from_excel


class BaseCase(unittest.TestCase):
    data = read_data_from_excel(os.path.join(DATA_PATH, "data.xlsx"), "用户")
    name, password, location = data[0]
    @classmethod
    def setUpClass(cls) -> None:
        cls.driver = chrome()
        aa = LoginPage(cls.driver)
        aa.login(cls.name,cls.password)

    def setUp(self) -> None:
        pass

    def tearDownC(self) -> None:
        pass
    @classmethod
    def tearDownClass(cls) -> None:
        cls.driver.quit()






